<template>
	<div>
		<div style="font-size:30px">px-rem</div>
		<PMheader></PMheader>
		<el-button type="success" v-has="true">主要按钮1</el-button>



	</div>
</template>
<script>
	import { groupcity} from '../../service/getData';
	export default {
		 mounted() {

			//获取所有城市
			this.getCityList();

			console.log(res);

			const obj = {
				foo: {
					bar: {
						baz: 42,
						fun: () => {
							return 666;
						}
					}
				}
			};
			let baz = obj?.foo?.bar?.baz;
			let fun = obj?.foo?.bar?.fun();
			console.log(baz);
			console.log(fun)
		},
		methods : {
			 async getCityList () {
				const data = await groupcity();

				if (data.status !== 200) {
					return this.$message.error('获取角色列表失败')
				}
				this.$message.success('获取角色列表成功')
			}
		}
	};
</script>
<style lang="less" scoped>
	div {
		color: @pm-base-color;
		/*font-size:100px*/
	}
</style>
